package com.swallow.cloud.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.swallow.cloud.service.HelloService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("")
public class HelloController {


    @Reference
    private HelloService helloService;

    @GetMapping("/sayHello")
    @ResponseBody
    public String sayHello(){
        return helloService.sayHello();
    }
}
